//
//  ContactsTableViewCell.m
//  WhatsChat
//
//  Created by lanou3g on 16/3/23.
//  Copyright © 2016年 tanchen. All rights reserved.
//

#import "ContactsTableViewCell.h"

@implementation ContactsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self loadView];
    }
    return self;
}

- (void)loadView{

    self.pictureImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"7.png"]];
    self.pictureImageView.frame = CGRectMake(10, 10, 40, 40);
    [self.contentView addSubview:self.pictureImageView];
    
    self.userNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 10, [UIScreen mainScreen].bounds.size.width-80, 40)];
    self.userNameLabel.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:self.userNameLabel];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
